Intersoft WebInput Documentation
How-to: Use calculator editor events
See Also Send Feedback
Intersoft WebInput > Features and Concepts > Client Side Events > How-to: Use calculator editor events

Glossary Item Box

WebInput.NET calculator editor has client side events model. Every client side event handler at least has 1 parameter (controlId).

In this topic, you will learn how to use calculator editor client side events in WebInput.

To use WebInput calculator editor events

  1. Drag WebInput instance to WebForm.
  2. Go to WebInput CalculatorEditorClientSideEvents property.
  3. Add WebInput1_OperandOnClick to OnClick event in OperandEvents.
  4. Add WebInput1_OperatorOnClick to OnClick event in OperatorEvents.
  5. In client side, add WebInput1_OperandOnClick function and put the following code:

    JavaScript Copy ImageCopy Code
    function WebInput1_OperandOnClick(controlId)
    {
           alert("Operand key is triggered");
    }

  6. In client side add WebInput1_OperatorOnClick function and put the following code:

    JavaScript Copy ImageCopy Code
    function WebInput1_OperatorOnClick(controlId)
    {
            alert("Operator key is triggered");
    }

  7. Compile and run the Project.

See Also